﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Serialization;

namespace BYRBBS.Model
{
    [XmlRoot("section")]
    public class Section
    {
        [XmlElement("name")]
        // 这个是分区的序号，是个数字，不是真正的名字
        public string Name { get; set; }

        [XmlElement("description")]
        // this is the true chinese name
        public string Description { get; set; }

        [XmlElement("is_root")]
        public string Is_root { get; set; }

        [XmlElement("parent")]
        public string Parent { get; set; }

        [XmlArray("sub_section"), XmlArrayItem("item")]
        //忽略
        public string[] Subsection_items { get; set; }

        [XmlArray("board"), XmlArrayItem("item")]
        public Board[] BoardItems { get; set; }

    }
}
